import Taro, { Component } from '@tarojs/taro'
import { Provider } from '@tarojs/mobx'
import 'taro-ui/dist/style/index.scss'
import Index from './pages/index'
import cf from './store/modules/cfStore';
import lyp from './store/modules/lypStore';
import yx from './store/modules/yxStore';
import login from './store/login'
import './app.less'

const store = {
  cf,login,lyp,yx
}
class App extends Component {
  componentDidMount () {}
  config = {
    pages: [
      'pages/csyg/csyg',
      'pages/index/index',
      'pages/login/login',
      'pages/insurance/insurance',
      // 'pages/ylp/ylp',
      // 'pages/dbyc/dbyc',
      // 'pages/qtfw/qtfw',
      // 'pages/csyg/csyg',
      
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    }
  }
  componentDidShow () {}

  componentDidHide () {}

  componentDidCatchError () {}

  // 在 App 类中的 render() 函数没有实际作用
  // 请勿修改此函数
  render () {
    console.log(store)
    return (
      <Provider store={store}>
        <Index />
      </Provider>
    )
  }
}

Taro.render(<App />, document.getElementById('app'))
